<?php
/**************************************
 *
 * @services 服务层~主要进行数据筛选与过滤
 *
 **************************************/
namespace app\common\services;
use app\common\repositories\IndexRepositories;

class IndexServices
{
    protected $IndexRepositories;

    public function __construct()
    {
        $this->IndexRepositories = new IndexRepositories();
    }
    /*
     *  首页文章列表
     */
    public function getList($requestData)
    {
        return $this->IndexRepositories->getList($requestData);
    }

    /*
     *  文章详情
     */
    public function getInfo($requestData)
    {
        return $this->IndexRepositories->getInfo($requestData);
    }

    /*
     *  相关文章
     */
    public function relRead($requestData)
    {
        return $this->IndexRepositories->relRead($requestData);
    }
}